import { _decorator, AudioClip, Component, JsonAsset, Node, Prefab, SpriteFrame } from 'cc';
const { ccclass, property } = _decorator;

/**
 * 事件监听
 */
export const emits = {
    // 更新编辑器剩余元素数量显示
    updateSize: 'updateSize',
    // 更新编辑器剩余元素数量显示
    tipMsg: 'tipMsg',
    // 退出按钮是否显示
    backIsShow: 'backIsShow',
    // 复活
    isFuhuo: 'isFuhuo',
    // 从新开始
    anewGame: 'anewGame',
    // 道具状态
    daojuStatus: 'daojuStatus',

}
/**
 * 资源包名称
 */
export const Bundle = {
    prefabs: 'prefabs',
    json: 'leveJson',
    audio: 'music',
}
/**
 * 资源路径
 */
export const resPath = {
    prefabs: { type: Prefab, path: '' },
    img: { type: SpriteFrame, path: '' },
    audio: { type: AudioClip, path: '' },
    json: { type: JsonAsset, path: '' },
};
/**
 * 音乐名称
 */
export const bgmName = {
    music_bg: 'music_bg',
    game_bg: 'game_bg',
    sound_click: 'sound_click',
    sound_clean: 'sound_clean',
    sound_shibai: 'sound_shibai',
    sound_win: 'sound_win',
    sound_btn: 'sound_btn',
};
/**
 * 本地存储
 */
export const local = {
    nowLevel: 'nowLevel',
    isBgm: 'isBgm',
    isSound: 'isSound',
    nowPifu: 'nowPifu',
    pifuIsJiesuo: 'pifuIsJiesuo',
};

/**
 * 所处平台
 */
export const pingtai = {
    wx: 'WECHAT_GAME',
    dy: 'BYTEDANCE_MINI_GAME',
    qq: 'qq',
    oth: 'oth',
};

